/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.nii.qlks.ControlLayer;

import edu.nii.qlks.BusinessLogicLayer.CTBCDatTiecBLL;
import edu.nii.qlks.DataTransferObject.CTBCDatTiecInfo;
import java.util.ArrayList;

/**
 *
 * @author MARS_NHO
 */
public class CTBCDatTiecControl {
    CTBCDatTiecBLL CTBCDatTiec = new CTBCDatTiecBLL();
    
    public ArrayList LayDS() throws Exception{
        return CTBCDatTiec.LayDS();
    }
        
    public void Insert(CTBCDatTiecInfo cTBCDatTiecInfo) throws Exception{
        CTBCDatTiec.Insert(cTBCDatTiecInfo);
    }
    
    public void Update(CTBCDatTiecInfo cTBCDatTiecInfo) throws Exception{
        CTBCDatTiec.Update(cTBCDatTiecInfo);
    }
    
    public void Delete(CTBCDatTiecInfo cTBCDatTiecInfo) throws Exception{
        CTBCDatTiec.Delete(cTBCDatTiecInfo);
    }
    
    public String TaoMaTuDong(String maGoc, int batDau){
         return CTBCDatTiec.TaoMaTuDong(maGoc, batDau);
     }
}
